import React from 'react'

export default class Popup extends React.Component {
    render() {
        return (
            <div refs="noticeBox" className={`box`}>
                <p>{this.props.text || "Are you sure?"}</p>
                <button onClick={this.props.toggleShow}>no</button>
                <button onClick={this.props.add}>yes</button>
            </div>
        )
    }

}